import math

def solution(x,y,d):    
    r = y-x
    if(r==0): return 0
    
    c = math.ceil(r/d)
    return c

print(solution(10, 85, 30))  # 输出: 3
print(solution(0, 100, 10))  # 输出: 10